projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83590e2
)
url.path is now a Path, not a String
author
Renato Zannon
<renato@rrsz.com.br>
Sun, 6 Jul 2014 23:07:56 +0000
(20:07 -0300)
committer
Renato Zannon
<renato@rrsz.com.br>
Sun, 6 Jul 2014 23:07:56 +0000
(20:07 -0300)
src/cargo/sources/git/source.rs
patch
|
blob
|
history
diff --git
a/src/cargo/sources/git/source.rs
b/src/cargo/sources/git/source.rs
index 6a87f318c41cc25d741476f6b3b6b261c5a5d2ea..24ab5e8e0114930e4cda645fbb1ae5ea6a3da354 100644
(file)
--- a/
src/cargo/sources/git/source.rs
+++ b/
src/cargo/sources/git/source.rs
@@
-68,7
+68,7
@@
fn ident(location: &Location) -> String {
str::from_utf8(last).unwrap().to_str()
}
Remote(ref url) => {
- let path = canonicalize_url(url.path.as_slice());
+ let path = canonicalize_url(url.path.
path.
as_slice());
path.as_slice().split('/').last().unwrap().to_str()
}
};